Name: Donkey Kong Console: Nintendo Version 2.0 05/July/2025 Written by: samurai goroh samuraigoroh@gmail.com ******************************************************************************* ___ ___ __ _ _ __ ___ __ __ _ __ ___ __ _ ____ | \ | | | \| | | |/ / | __) \ \/ / | |/ / | | | \| | | __| | | | | | | | . ' | | < | _) ) / | < | | | | . ' | | __ | |___/ |___| |_|\__| |_|\_\ |___) /__/ |_|\_\ |___| |_|\__| \___| | \_| ******************************************************************************* 1.0 Flags 2.0 Hex Numbers 3.0 Bitwise Values 4.0 Lists 4.1 Mario - Status ------------------------------------------------------------------------------- SORTED CODES ------------------------------------------------------------------------------- 0014 XX Current buttons pressed 0015 XX Current buttons pressed (excluding jump button) 0021 XXXXXX Score - Top (BCD) 2.0 0025 XXXXXX Score - P1 (BCD) 2.0 0029 XXXXXX Score - P2 (BCD) 2.0 002E XXXX Time remaining (Bonus Counter) (BCD) 2.0 0034 XX Timer - DK arm animation; Interval Timer Control (11 frames rule) 0036 XX Timer - DK reaches from the left to the center 0037 XX Timer - DK either drops barrel or goes from center to right 0038 XX Timer - Oil barrel flame animation 0039 XX Timer - Princess animation (0=moves, else freezes) 003F XX Timer - Hammer duration 2.0 0044 XX Timer - DEMO mode timer startup 2.0 0046 XX Mario - X coord 2.0 0047 XX Mario - Y coord 2.0 0050 XX Title screen option selected (00 - 03) 0051 XX # of players (18=1, 1C=2) 0052 XX Player's turn (00=P1, 01=P2) 2.0 0053 XX Zone (Sub-level) 0054 XX Playthrough loop 2.0 0055 XX Lives remaining (graphics) 0056 XX Current direction button pressed 0057 XX Last direction button pressed 0058 XX DEMO mode toggle (01=active) 1.0 0088 XX Mario - Movement pattern 0096 XX Mario - Status 4.1 009A XX Pauline rescued toggle (01=saved) 1.0 00C1 to 00C8 Beam Joint toggle in Zone 3 (01=Beam Joint removed) 1.0 00C9 XXXXXX Pauline's related stuff? 00F7 XXXX Pointer for music file 0100 to 01FF CPU stack 0200 to 02FF Sprite RAM that is transferred via DMA every NMI 0330 XX Offset for the current Name Table Update variable below 0331 to 033F Stores the pending changes to update the Name Table 0400 XX P1 - Zone (01=1, 03=2, 04=3) 0401 XX P2 - Zone 0402 XX P1 - Level 0403 XX P2 - Level 0404 XX P1 - Lives remaining 0405 XX P2 - Lives remaining 0406 XX P1 - Game Over 0407 XX P2 - Game Over 0408 XX P1 - Extra live awarded toggle? (01=yes) 1.0 0451 XX Hammer #1 available toggle (01=yes) 1.0 0452 XX Hammer #2 available toggle (01=yes) 1.0 043E XX How many pixels Mario moves up each step of his jump 2.0 050B XX DEMO mode toggle (01=on) 1.0 050C XX How many times DEMO Mario moves a direction 050D XX Which way DEMO Mario will move 050E XX Index in the array of DEMO movements 0516 XX Pause toggle (01=yes) 1.0 -------------------------------------------------------------------------------- Description -------------------------------------------------------------------------------- 1.0 Flags +--+---+ |00|Off| |01|On | +--+---+ 2.0 Hex Numbers +----+----+-----+ +--------+----+-----+ +----------------+----+-----+ | Bin| Hex| Dec | | Bin | Hex| Dec | | Bin | Hex| Dec | +----+----+-----+ +--------+----+-----+ +----------------+----+-----+ |0000| 0| 0| |00000000| 00| 0| |0000000000000000|0000| 0| |0001| 1| 1| |00010000| 10| 16| |0001000000000000|1000| 4096| |0010| 2| 2| |00100000| 20| 32| |0010000000000000|2000| 8192| |0011| 3| 3| |00110000| 30| 48| |0011000000000000|3000|12288| |0100| 4| 4| |01000000| 40| 64| |0100000000000000|4000|16384| |0101| 5| 5| |01010000| 50| 80| |0101000000000000|5000|20480| |0110| 6| 6| |01100000| 60| 96| |0110000000000000|6000|24576| |0111| 7| 7| |01110000| 70| 112| |0111000000000000|7000|28672| |1000| 8| 8| |10000000| 80| 128| |1000000000000000|8000|32768| |1001| 9| 9| |10010000| 90| 144| |1001000000000000|9000|36864| |1010| A| 10| |10100000| A0| 160| |1010000000000000|A000|40960| |1011| B| 11| |10110000| B0| 176| |1011000000000000|B000|45056| |1100| C| 12| |11000000| C0| 192| |1100000000000000|C000|49152| |1101| D| 13| |11010000| D0| 208| |1101000000000000|D000|53248| |1110| E| 14| |11100000| E0| 224| |1110000000000000|E000|57344| |1111| F| 15| |11110000| F0| 240| |1111000000000000|F000|61440| +----+----+-----+ |11111111| FF| 255| |1111111111111111|FFFF|65535| +--------+----+-----+ +----------------+----+-----+ 3.0 Bitwise Values 4.0 Lists 4.1 Mario - Status +--+----------------+ |01| Walking | |02| Climbing ladder| |04| Jumping | |08| Falling | |0A| Hammering | |FF| Dying | +--+----------------+